package com.service;

import com.Dao.UserMapper;
import com.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
    @Service("UserService")
public class UserServiceImple implements UserService {
    @Autowired
    private UserMapper userMapper;

    public UserServiceImple() {
    }

    public UserServiceImple(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public UserMapper getUserMapper() {
        return userMapper;
    }

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public List<User> getAllUser() {
        return userMapper.getAllUser();
    }

@Transactional(readOnly=true)
    @Override
    public String getAllAddress() {
        return "";
    }


    @Override
    public Integer addnewUser(User user) {
        return null;
    }

    @Override
    public Integer addNewUsers(List<User> users) {
        return null;
    }
}
